﻿using Microsoft.AspNetCore.Razor.TagHelpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ReaWTM.LayuiHelper
{

	[HtmlTargetElement("wt:badge", TagStructure = TagStructure.NormalOrSelfClosing)]
	public class BadgeTagHelper : BaseTag
	{
		public override void Process(TagHelperContext context, TagHelperOutput output)
		{
			output.TagName = "span";
			output.TagMode = TagMode.StartTagAndEndTag;

			output.Attributes.Add("class", $"layui-badge {base.GetBgColorClass()} {base.GetFontSizeClass()} {base.GetFontColorClass()}");
			base.Process(context, output);
		}
	}
}
